import request from "../utils/request";
const api_name = "/teacher";

export default {
    //获取首页讲师课程数据
    getPagedList(page, limit) {
        return request({
            url: `${api_name}/search/${page}/${limit}`,
            method: "post",
        });
    },
    //根据id获取讲师详情和主讲课程
    getTeacherDetail(id) {
        return request({
            url: `http://39.98.120.230:8080/api/teacher/detailinfo/${id}`,
            method: "get",
        });
    },
};